#include "matrixfunctions.h"
#include "vectorfunctions.h"


int main()
{
	int max, row, col, i, j, n=0;
	int mat[100][100];
	int x[100];
	cout<<"Number of rows : " ;
	cin>>row;
	cout<<"Number of columns : " ;
	cin>>col;
	readmatrix(mat, row, col);
	max=mat[0][0];
	for(i=0; i<row; i++)
		for(j=0; j<col; j++)
			if(max<mat[i][j])
				max=mat[i][j];
	for(i=0; i<row; i++)
		for(j=0; j<col; j++)
			if(max==mat[i][j]){
				x[n]=i;
				x[n+1]=j;
				n += 2;
			}
	printVector(x, n);


return 0;
}
